//using Microsoft.VisualBasic;
using System;

//
// *  NHibernate 代码模版
// 

using System.Collections.Generic;

namespace NCS
{
	/// <summary>
	///	
	/// </summary>
	[Serializable()]
	public class muser
	{

		#region "构造方法"
		public muser()
		{
			m_ID = 0;
			m_mname = "";
			m_autoweight = false;
			m_mpassword = "";
			m_method = "";

			m_methodid = 0;
		}
		#endregion


		#region "私有变量"
		private int m_ID;
		private string m_mname;
		private bool m_autoweight;
		private string m_mpassword;
		private string m_method;

		private int m_methodid;
		#endregion


		#region "公有属性"

		///<summary>
		///
		///</summary>
		public virtual int ID {
			get { return m_ID; }
			set { m_ID = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string mname {
			get { return m_mname; }
			set { m_mname = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual bool autoweight {
			get { return m_autoweight; }
			set { m_autoweight = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string mpassword {
			get { return m_mpassword; }
			set { m_mpassword = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string method {
			get { return m_method; }
			set { m_method = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int methodid {
			get { return m_methodid; }
			set { m_methodid = value; }
		}

		#endregion

		#region "Rewrite Equals and HashCode"
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if (object.ReferenceEquals(this, obj)) {
				return true;
			}
			if ((obj == null) || (!object.ReferenceEquals(obj.GetType(), GetType()))) {
				return false;
			}
			muser castObj = (muser)obj;
			return (castObj != null) && (m_mname == castObj.mname);
		}
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 0;
			// = 57
			int tmp = m_mname.GetHashCode();
			hash = tmp;
			return hash;
		}
		#endregion
	}
}
